package com.itheima.reggie.service;

import com.itheima.reggie.domain.Address;

import java.util.List;

public interface AddressService {
    //添加地址
    void add(Address address);
    //查询
    List<Address> findList();
    //根据ID查询
    Address findById(Long id);
    //修改
    void update(Address address);
    //删除
    void deleteById(List<Long> ids);
    //设置默认地址
    void setDefault(Address address);
    //查询默认地址
    Address getDefault();
}
